﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class SUM : Calculate
    {
        public SUM(int a, int b) : base(a, b)
        {

        }
        
        public override void DisplayResult()
        {
            int sum = 0;
            sum = A + B;
            Console.WriteLine("和为："+sum);
        }
    }
}
